﻿package pk;


import java.io.File;  
import java.io.FileInputStream;  
import java.io.FileNotFoundException;  
public class duwenjian{
	 public static void main(String[] args){
        File file = new File("F:\\fileInputStream\\a.txt");  

        FileInputStream fis = new FileInputStream(file);  

    int len;  

        int length;  
        byte[] bytes = new byte[1024];  
        while ((length = fis.read(bytes)) != -1) {  
            System.out.print(new String(bytes, 0, length));  
        }  
        fis.close();

    }  
 }  
